package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * dh_order_resourse_price
 * @author 
 */
public class OrderResoursePrice implements Serializable {
    private String orderPriceId;

    private String orderId;

    private String orderProductId;

    private String resCategoryId;

    private Integer orderType;

    private Integer productType;

    private String totalprice;

    private static final long serialVersionUID = 1L;

    public String getOrderPriceId() {
        return orderPriceId;
    }

    public void setOrderPriceId(String orderPriceId) {
        this.orderPriceId = orderPriceId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(String orderProductId) {
        this.orderProductId = orderProductId;
    }

    public String getResCategoryId() {
        return resCategoryId;
    }

    public void setResCategoryId(String resCategoryId) {
        this.resCategoryId = resCategoryId;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public String getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(String totalprice) {
        this.totalprice = totalprice;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderResoursePrice other = (OrderResoursePrice) that;
        return (this.getOrderPriceId() == null ? other.getOrderPriceId() == null : this.getOrderPriceId().equals(other.getOrderPriceId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getOrderProductId() == null ? other.getOrderProductId() == null : this.getOrderProductId().equals(other.getOrderProductId()))
            && (this.getResCategoryId() == null ? other.getResCategoryId() == null : this.getResCategoryId().equals(other.getResCategoryId()))
            && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()))
            && (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType()))
            && (this.getTotalprice() == null ? other.getTotalprice() == null : this.getTotalprice().equals(other.getTotalprice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderPriceId() == null) ? 0 : getOrderPriceId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getOrderProductId() == null) ? 0 : getOrderProductId().hashCode());
        result = prime * result + ((getResCategoryId() == null) ? 0 : getResCategoryId().hashCode());
        result = prime * result + ((getOrderType() == null) ? 0 : getOrderType().hashCode());
        result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode());
        result = prime * result + ((getTotalprice() == null) ? 0 : getTotalprice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderPriceId=").append(orderPriceId);
        sb.append(", orderId=").append(orderId);
        sb.append(", orderProductId=").append(orderProductId);
        sb.append(", resCategoryId=").append(resCategoryId);
        sb.append(", orderType=").append(orderType);
        sb.append(", productType=").append(productType);
        sb.append(", totalprice=").append(totalprice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}